<template>
  <custom-button class-name="icon-icon-add" :on-click="onClick">
    {{ text }}
  </custom-button>
</template>

<script>
import CustomButton from '@/components/buttons/CustomButton'
export default {
  name: 'AddButton',
  components: {
    CustomButton
  },
  props: {
    text: {
      type: String,
      default: '新增'
    },
    onClick: {
      type: Function,
      default: () => {}
    }
  }
}
</script>

<style scoped></style>
